﻿<%@ Page Language="C#" MasterPageFile="~/Main.master" AutoEventWireup="true" ValidateRequest="false"
    CodeFile="PubTravelDocInfo.aspx.cs" Inherits="PubTravelDocInfo" Title="下驿栈" %>

<%@ Register Src="MyControls/SearchControl.ascx" TagName="SearchControl" TagPrefix="uc2" %>
<%@ Register Src="MyControls/TravelLeftControl.ascx" TagName="TravelLeftControl"
    TagPrefix="uc1" %>
<%@ Register Assembly="DevExpress.Web.v9.2, Version=9.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxUploadControl" TagPrefix="dxuc" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <link href="css/2.css" rel="stylesheet" type="text/css" />

    <script src="Kinde/kindeditor.js" type="text/javascript"></script>

    <script type="text/javascript">
KE.show({
    id : 'ctl00_ContentPlaceHolder1_txtContent',
				resizeMode : 1,
				allowPreviewEmoticons : false,
				allowUpload : true,
				items : [
				'fontname', 'fontsize', '|', 'textcolor', 'bgcolor', 'bold', 'italic', 'underline',
				'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
				'insertunorderedlist', '|', 'emoticons', 'image', 'link']
});
    </script>

    <input type="hidden" id="hdfPid" runat="server" />
    <input type="hidden" id="hdfTid" runat="server" />
    <div id="conn">
        <div id="left">
            <div class="left1">
                <uc2:SearchControl ID="SearchControl1" runat="server" />
            </div>
            <div class="left3">
                <uc1:TravelLeftControl ID="TravelLeftControl1" runat="server" />
            </div>
        </div>
        <div id="rightd">
            <div>
                <asp:Image ID="imgNav" ImageUrl="images/xxss.jpg" runat="server" />
            </div>
            <div class="rgt3">
                <p class="biaoti">
                    标题：<asp:TextBox ID="txtTitle" Width="500px" runat="server"></asp:TextBox>
                </p>
                <p>
                <table style="width:100%">
                    &nbsp;<asp:Repeater ID="rptImages" runat="server">
                        <HeaderTemplate>
                            <tr>
                                <td style="width: 100px; text-align: right; vertical-align: top;">
                                    图片：
                                </td>
                                <td>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <div style="float: left;" id='<%#Eval("id") %>'>
                                <img src='uploads/<%#Eval("imgPath") %>' width="100px" height="80px" alt='<%#Eval("imgAlt") %>'
                                    style="border: dashed 1px #ccc; padding-left: 2px;" /><br />
                            </div>
                        </ItemTemplate>
                        <FooterTemplate>
                            </td></tr>
                        </FooterTemplate>
                    </asp:Repeater>
                    <tr>
                        <td style="width: 100px; text-align: right" valign="top">
                            添加图片：
                        </td>
                        <td style="text-align: left;">
                            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
                                <tr>
                                    <td>
                                        <dxuc:ASPxUploadControl ID="uploadControl" runat="server"
                                            Height="2px" ShowAddRemoveButtons="false" Width="310px" FileInputCount="1">
                                            <AddButton Text="添加">
                                            </AddButton>
                                        </dxuc:ASPxUploadControl>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 100px; text-align: right" valign="top">
                            内容：
                        </td>
                        <td style="text-align: left; margin: 0px; padding: 0px;">
                            <textarea id="txtContent" runat="server" style="width: 100%; height: 300px; visibility: hidden;"></textarea>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 100px; text-align: right">
                        </td>
                        <td style="text-align: left;">
                            <table>
                                <tr>
                                    <td style="width: 80px;">
                                        <asp:Button ID="btnSave" runat="server" Text="保存" OnClick="btnSave_Click" Width="40px" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    </table>
                </p>
            </div>
        </div>
    </div>
</asp:Content>
